<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="modal-dialog ms-modal-dialog">
  <div class="modal-content">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
      <h4 class="modal-title">编辑车辆GPS信息</h4>
    </div>

    <form method="POST" action="${ctx.host}/tractors/${tractor.id}/edit-gps" class="form-horizontal ms-form modal-search-form" role="form" data-validate="true" autocomplete="off">
    
      <input type="hidden" name="_method" value="PATCH" />
      <input type="hidden" name="id" value="${tractor.id}" />

      <div class="modal-body">

        <div class="form-group ms-form-group">
            <label class="control-label col-xs-4">GPS品牌：</label>
            <div class="col-xs-7 pull-left">
              <input type="text" name="gps" class="form-control" placeholder="GPS品牌" value="${tractor.gps}">
            </div>
          </div>  
            
          <div class="form-group ms-form-group">
            <label class="control-label col-xs-4">GPS绑定SIM卡号 ：</label>
            <div class="col-xs-7 pull-left">
              <input type="text" name="simCard" class="form-control" placeholder="GPS绑定SIM卡号" value="${tractor.simCard}">
            </div>
          </div>

      </div>

      <div class="modal-footer ms-modal-footer">
        <button type="submit" class="btn ms-btn btn-primary btn-submit">提交</button>
        <button type="button" class="btn ms-btn ms-btn-gary" data-dismiss="modal">取消</button>
      </div>

    </form>
    
  </div>
</div>